package cn.bone.admin.system.loginfo.controller;

import cn.bone.admin.base.bean.CommonResult;
import cn.bone.admin.system.loginfo.service.AccessService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2017/9/12.
 */
@RestController
@CrossOrigin
@RequestMapping("/sys/access")
public class AccessController {

    @Resource
    private AccessService accessService;

    @RequestMapping("/listQuery")
    public CommonResult<?> listQuery(Integer page,Integer rows,String key){

        return accessService.queryList(page,rows,key);
    }
}
